package com.cxs.plan.DTO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class UserDTO {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "昵称不能为空")
    private String nickName;

    private String password;

    @NotNull(message = "账号不能为空")
    private String username;

    @NotNull(message = "状态不能为空")
    private Integer status;

    private List<String> roleIds;

}
